#ifndef __ebook_h__
#define __ebook_h__

#include <string>
#include <android/log.h>

#include "sqlite3.h"
#include "sqlite3ext.h"

/**
 * @author andy
 *
 */
class EBook {

private:
	static const std::string DATABASE_TABLE_NAME;

	static const std::string FIELD_NAME_APPLICATION_ID;
	static const std::string FIELD_NAME_author_sort;
	static const std::string FIELD_NAME_authors;
	static const std::string FIELD_NAME_book_producer;
	static const std::string FIELD_NAME_BOOK_TITLE;
	static const std::string FIELD_NAME_category;
	static const std::string FIELD_NAME_comments;
	static const std::string FIELD_NAME_cover;
	static const std::string FIELD_NAME_db_id;
	static const std::string FIELD_NAME_ddc;
	static const std::string FIELD_NAME_isbn;
	static const std::string FIELD_NAME_language;
	static const std::string FIELD_NAME_lcc;
	static const std::string FIELD_NAME_lccn;
	static const std::string FIELD_NAME_lpath;
	static const std::string FIELD_NAME_mime;
	static const std::string FIELD_NAME_pubdate;
	static const std::string FIELD_NAME_publication_type;
	static const std::string FIELD_NAME_publisher;
	static const std::string FIELD_NAME_rating;
	static const std::string FIELD_NAME_rights;
	static const std::string FIELD_NAME_series;
	static const std::string FIELD_NAME_series_index;
	static const std::string FIELD_NAME_size;
	static const std::string FIELD_NAME_tags;
	static const std::string FIELD_NAME_thumbnail_data;
	static const std::string FIELD_NAME_thumbnail_height;
	static const std::string FIELD_NAME_thumbnail_width;
	static const std::string FIELD_NAME_timestamp;
	static const std::string FIELD_NAME_title_sort;
	static const std::string FIELD_NAME_uuid;
	static const std::string LOG_TAG;

public:
	int application_id;
	std::string author_sort;
//FIXME:    HashMap<std::string, std::string> author_sort_map;
	std::string authorString;
	std::string book_producer;
	std::string category;
	//FIXME:    HashMap<std::string, std::string> classifiers;
	std::string comments;
	std::string cover;
	//FIXME:    List<std::string> cover_data;
	std::string db_id;
	std::string ddc;
	int id;
	std::string isbn;
	std::string language;
	//FIXME:    List<std::string> languages;
	std::string lcc;
	std::string lccn;
	std::string lpath;
	std::string mime;
	std::string pubdate;
	std::string publication_type;
	std::string publisher;
	int rating;
	std::string rights;
	std::string series;
	std::string series_index;
	int size;
	std::string tagString;
	int thumbnail_height;
	int thumbnail_width;
	std::string thumbnail_data;
	std::string timestamp;
	std::string title;
	std::string title_sort;
	//FIXME:    List<std::string> user_metadata;
	std::string uuid;

	EBook();

};

#endif
